home *** CD-ROM | disk | FTP | other *** search
- /*
- ##########################################################################
- #### ####
- #### The MusicBox Project ####
- #### ============================ ####
- #### ####
- #### Inquiry.c ####
- #### ####
- #### Version 2.1os -- September 29, 2000 ####
- #### ####
- #### Copyright (C) 1994 Thomas Dreibholz ####
- #### 2000 Molbachweg 7 ####
- #### 51674 Wiehl ####
- #### Germany ####
- #### ####
- #### EMail: Dreibholz@bigfoot.com ####
- #### WWW: http://www.bigfoot.com/~dreibholz ####
- #### ####
- ##########################################################################
- */
- /***************************************************************************
- * *
- * This program is free software; you can redistribute it and/or modify *
- * it under the terms of the GNU General Public License as published by *
- * the Free Software Foundation; either version 2 of the License, or *
- * (at your option) any later version. *
- * *
- ***************************************************************************/
-
- /* Install */
-
- #include <exec/types.h>
- #include <stdio.h>
-
- void main()
- {
- ULONG i;
- UBYTE c;
- UBYTE str[128];
- UBYTE cmd[256];
-
- puts("Enter directory to install MusicBox 2.1os (e.g. DH0:MusicBox)");
- scanf("%s",&str);
- printf("\nYou entered: «%s»\n",str);
- puts("Is this correct? (y/n)");
- fflush(stdin);
- c=toupper(getc(stdin));
- if(c=='Y') {
- sprintf(&cmd,"c:Execute Install.CLI \"%s\"",&str);
- printf("CLI> %s\n",&cmd);
- i=Execute(&cmd,0L,0L);
- }
- puts("\nPress RETURN to continue.");
- fflush(stdin);
- c=getc(stdin);
- }
-